/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.kkh.dao;

import com.hlingsoft.kkh.entity.Events;
import com.hlingsoft.kkh.entity.Share;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * 用户服务
 *
 * @author Zhang jiale
 *
 */

@Repository
public interface ShareDao {


	/**
	 * 分享
	 *
	 * @param share
	 * @return Integer
	 */
	public int addShare(Share share);


	/**
	 * 更新share
	 *
	 * @param share
	 * @return
	 */
	public int updateShare (Share share);


	/**
	 * 获取活动获得的分享
	 * @param eventsId
	 * @return
	 */
	public List<Share> getShareByEventsId(@Param("eventsId") long eventsId );

	public List<Share> getShareByEventsIdWithNone(@Param("eventsId") long eventsId );


	/**
	 * 通过被分享人查找
	 * @param appUserId
	 * @return
	 */
	public List<Share>  getShareByAppUserId(@Param("appUserId") long appUserId);

	/**
	 * 图片分享
	 * @param imageId
	 * @return
	 */
	public List<Share> getShareByImageId(@Param("imageId") long imageId );


	/**
	 * 相关分享
	 * @param appUserId
	 * @return
	 */
	public List<Share>  getShareByAppUserIdWithNone(@Param("appUserId") long appUserId);





}
